package com.estate.utils;

public class ManageProStateUtil {
	
	public static int getManageProStateInt(String stateString){
		int manageProState = 0;
		
		if("未发布".equals(stateString)){
			manageProState = 0;
		}else if("发布".equals(stateString)){
			manageProState = 1;
		}
		
		return manageProState;
	}
	
	public static String getManageProStateString(int stateInt){
		String manageProState = "";
		
		if(stateInt == 0){
			manageProState = "未发布";
		}else if(stateInt == 1){
			manageProState = "发布";
		}
		
		return manageProState;
	}

}
